package com.yswy.domain.entity.user;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * This is Description
 *
 * @author linlifu
 * @date 2020/01/07
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Api(tags = "用户绑定角色")
@TableName(value = "sys_user_role")
public class UserRole {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private Integer roleId;

    private Integer roleType;

    @TableField(fill = FieldFill.INSERT, update = "now()")
    private Date createTime;

}
